package com.gxa.service;

import com.gxa.common.LayR;
import com.gxa.common.R;
import com.gxa.param.AddCusatis;
import com.gxa.param.MyTableParam;
import com.gxa.pojo.Customer;

import javax.servlet.http.HttpSession;

public interface customerService {
    //返回客户价值列表
    LayR list(MyTableParam param);
    //返回客户满意度列表
    LayR satislist(MyTableParam param);
    //返回客户类型列表
    LayR typelist();
    //返回顾客历史订单
    LayR orderlist(Integer customerId,MyTableParam param);
    //删除
    R deleteOne(Integer customerId,Integer satisId);
    //添加
    R add(AddCusatis addCusatis, HttpSession session);
    //根据ID查找
    R findById(Integer customerId);
    //根据ID联表查找
    R findfromByID(Integer customerId);
    //修改
    R edit(AddCusatis addCusatis, HttpSession session);




//    顾客部分
    //    顾客部分
LayR Culist(MyTableParam param);

    R deleteCuOne(Integer id);

    R deleteAll(String[] ids);

    R addCu(Customer customer, HttpSession session);

    R findCuById(Integer id);

    R editCu(Customer customer,HttpSession session);

    R edit1(Customer customer,HttpSession session);
}
